import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

let routes: Array<RouteRecordRaw> = [
  { path: "/test", component: () => import("../views/Test.vue") },
  { path: "/", component: () => import("../views/Home.vue") },
  { path: "/docs", component: () => import("../views/Docs.vue") },
  { path: "/archives", component: () => import("../views/Archives.vue") },
  { path: "/edit", component: () => import("../views/Edit.vue") },
  {path: "/detail/:id", name: 'detail', component: () => import("../views/Detail.vue") }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export { router, routes };